//
//  DGBlockControl.h
//  DGUIKit
//
//  Created by Jinxiao on 1/2/14.
//  Copyright (c) 2014 debugeek. All rights reserved.
//

typedef void (^UIControlBlock)(UIControl *control);

/*
 为UIControl添加block支持，常用的有UIButton
 block会被retain
 */
@interface UIControl (DGBlockControl)

- (void)addActionBlock:(UIControlBlock)actionBlock forControlEvents:(UIControlEvents)event;
- (void)setActionBlock:(UIControlBlock)actionBlock forControlEvents:(UIControlEvents)event;

@end
